home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Technology Seed / August 1998 ADC Seed CD.toast / Mac OS 8.5b2 / allegro-b2-pseudo-SDK / AIncludes / ATSLayoutTypes.a < prev    next >
Encoding:
Text File  |  1998-07-17  |  3.2 KB  |  83 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ATSLayoutTypes.a
  3. ;
  4. ;    Contains:    Apple Text Services layout public structures and constants.
  5. ;
  6. ;    Version:    Technology:    Allegro
  7. ;                Release:    Allego Seed, Use with 3.1 Universal Interfaces
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ATSLAYOUTTYPES__') = 'UNDEFINED' THEN
  19. __ATSLAYOUTTYPES__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__SFNTTYPES__') = 'UNDEFINED' THEN
  25.     include 'SFNTTypes.a'
  26.     ENDIF
  27.     IF &TYPE('__SFNTLAYOUTTYPES__') = 'UNDEFINED' THEN
  28.     include 'SFNTLayoutTypes.a'
  29.     ENDIF
  30.  
  31. ;  ----------------------------------------------------------------------------------------- 
  32. ;  CONSTANTS 
  33. ;  LineOptions flags 
  34.  
  35. kATSLineNoLayoutOptions            EQU        $00000000
  36. kATSLineIsDisplayOnly            EQU        $00000001
  37. kATSLineHasNoHangers            EQU        $00000002
  38. kATSLineHasNoOpticalAlignment    EQU        $00000004
  39. kATSLineKeepSpacesOutOfMargin    EQU        $00000008
  40. kATSLineNoSpecialJustification    EQU        $00000010
  41. kATSLineLastNoJustification        EQU        $00000020
  42. ;  Miscellaneous constants 
  43.  
  44. kATSExtendedQDScale                EQU        81920                ; fixed value of 1.25 
  45. kATSCondensedQDScale            EQU        52428                ; fixed value of approx. 0.8 
  46. kATSItalicQDSkew                EQU        $00004000            ; fixed value of 0.25 
  47. kATSRadiansFactor                EQU        1144                ; fixed value of approx. pi/180 (0.0174560546875) 
  48. kATSNoTracking                    EQU        $80000000            ; negativeInfinity 
  49. kATSDeletedGlyphcode            EQU        $FFFF
  50. kATSSelectToEnd                    EQU        $FFFFFFFF
  51. kATSOffsetToNoData                EQU        $FFFFFFFF
  52. ;  --------------------------------------------------------------------------- 
  53. ;  TYPES 
  54. ;  --------------------------------------------------------------------------- 
  55. ; typedef UInt32                         ATSLineLayoutOptions
  56.  
  57. ;    The JustWidthDeltaEntryOverride structure specifies values for the grow and shrink case during
  58. ;    justification, both on the left and on the right. It also contains flags.  This particular structure
  59. ;    is used for passing justification overrides to LLC.  For further sfnt resource 'just' table
  60. ;    constants and structures, see SFNTLayoutTypes.h.
  61. ;
  62.  
  63. ATSJustWidthDeltaEntryOverride RECORD 0
  64. beforeGrowLimit             ds.l    1                ; offset: $0 (0)        ;  ems AW can grow by at most on LT 
  65. beforeShrinkLimit         ds.l    1                ; offset: $4 (4)        ;  ems AW can shrink by at most on LT 
  66. afterGrowLimit             ds.l    1                ; offset: $8 (8)        ;  ems AW can grow by at most on RB 
  67. afterShrinkLimit         ds.l    1                ; offset: $C (12)        ;  ems AW can shrink by at most on RB 
  68. growFlags                 ds.w    1                ; offset: $10 (16)        ;  flags controlling grow case 
  69. shrinkFlags                 ds.w    1                ; offset: $12 (18)        ;  flags controlling shrink case 
  70. sizeof                     EQU *                    ; size:   $14 (20)
  71.                         ENDR
  72. ;  The JustPriorityOverrides type is an array of 4 width delta records, one per priority level override. 
  73. ATSJustPriorityWidthDeltaOverrides RECORD 0
  74. elements                 ds.b    4 * ATSJustWidthDeltaEntryOverride.sizeof
  75. sizeof                     EQU *                    ; size:   $50 (80)
  76.                         ENDR
  77.  
  78.  
  79. ;  --------------------------------------------------------------------------- 
  80.     ENDIF ; __ATSLAYOUTTYPES__ 
  81.  
  82.